]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Avoid a warning
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 6 Aug 2021 16:15:40 +0000 (18:15 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 9 Aug 2021 14:08:09 +0000 (14:08 +0000)
commit26dc0fcd32a48a583853d3cab80eaa3706d65530
tree7986300de1fc3f5b8be6647ba0b62972a1f31528
parent19fc6ef5dd92f8e11bb57108df1db9e3444a3b52
appDisplay: Avoid a warning

At least the last stable release of gjs has an issue with async
handlers for custom (i.e. defined in JS) GObject signals.

The handler still works, but evoking it prints the following warning:

  JS ERROR: Error: Could not guess unspecified GValue type

We can avoid the warning by using the addAction() convenience
method, which makes for a small nice cleanup anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4531

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1938>
js/ui/appDisplay.js